import java.util.*;
public class Random{
    public static void main(String args[]){
      System.out.println("未知一个1-10的整数，请猜测其数值");
      int x=1+(int)(Math.random()*10);
      int z;
   do{
      Scanner in= new Scanner(System.in);
       z = in.nextInt();
     if(z==x){
     System.out.println("Right!");}
 else if(z<x){
    System.out.println("Lower  than the number");}
else  if(z>x){
    System.out.println("Larger  than the number");}
else {
    System.out.println("Fatal input!");}
 }while(z != x);
    }
}
